package com.study.talk.data.model;


import com.study.common.annotation.Desc;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author thor
 * @since 2023-12-18
 */
public class Friend implements Serializable {


    @Desc("好友记录id")
    private Integer id;

    @Desc("用户id")
    private Integer userId;

    @Desc("好友id")
    private Integer friendId;

    @Desc("好友昵称")
    private String friendName;

    @Desc("好友头像地址")
    private String friendAvatar;

    @Desc("好友简介")
    private String friendIntroduce;

    @Desc("创建时间")
    private String createTime;

    public Friend(UserInfo friendInfo, Integer userId) {
        this.friendId = friendInfo.getId();
        this.friendAvatar = friendInfo.getAvatar();
        this.friendName = friendInfo.getNickName();
        this.friendIntroduce = friendInfo.getIntroduce();
        this.userId = userId;
    }


    public Friend(Integer id, Integer userId, Integer friendId, String friendName, String friendAvatar, String friendIntroduce, String createTime) {
        this.id = id;
        this.userId = userId;
        this.friendId = friendId;
        this.friendName = friendName;
        this.friendAvatar = friendAvatar;
        this.friendIntroduce = friendIntroduce;
        this.createTime = createTime;
    }

    public Friend() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getFriendId() {
        return friendId;
    }

    public void setFriendId(Integer friendId) {
        this.friendId = friendId;
    }

    public String getFriendName() {
        return friendName;
    }

    public void setFriendName(String friendName) {
        this.friendName = friendName;
    }

    public String getFriendAvatar() {
        return friendAvatar;
    }

    public void setFriendAvatar(String friendAvatar) {
        this.friendAvatar = friendAvatar;
    }

    public String getFriendIntroduce() {
        return friendIntroduce;
    }

    public void setFriendIntroduce(String friendIntroduce) {
        this.friendIntroduce = friendIntroduce;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
